package com.iscas.green.extralindextest.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 服务接口Feign客户端
 * 直接调用远程服务API
 */
@FeignClient(name = "service-api", url = "http://116.63.51.45:8002")
public interface ServiceFeignClient {

    /**
     * 获取服务列表
     *
     * @param applicationId 应用ID
     * @param namespace 命名空间
     * @return 服务列表响应
     */
    @GetMapping("/api/service/getServiceList")
    Object getServiceList(
            @RequestParam("applicationId") String applicationId,
            @RequestParam("namespace") String namespace
    );
} 